package com.augmentum.oes.dao;

import java.util.List;

import com.augmentum.oes.model.Pagination;
import com.augmentum.oes.model.Question;
import com.augmentum.oes.model.SortStatusEnum;

public interface QuestionDao {

    Question save(Question question);

    List<Question> getAllQuestion(Pagination pagination, SortStatusEnum sort, String keyWord);

    Question getByQuestionId(int id);

    void update(Question question);

    void dropById(String[] idStr);

    int getTotalCount(String keyWord);

    Question getLastQuestion();

    List<Question> getRandomQuestion(int row);
}